function Test2(params) {
	const promise1 = new Promise((resolve, rejct) => {
		console.log('promise1');
		resolve('resolve1');
	});

	const promise2 = promise1.then((res) => {
		console.log(res);
	});
	console.log('1', promise1);
	console.log('2', promise2);
}
Test2()
// 结果：promise1
// 1 Promise {<fulfilled>: 'resolve1'}
// 2 Promise {<pending>}
// resolve1